package com.ihisomp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户与机构关系
 * </p>
 *
 * @author zy
 * @since 2022-04-15
 */
@TableName("t_sys_user_org")
public class SysUserOrg implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户与机构对应主键
     */
    @TableId(value = "user_org_key", type = IdType.INPUT)
    private String userOrgKey;

    /**
     * 用户主键
     */
    private String userKey;

    /**
     * 机构主键
     */
    private String orgKey;

    /**
     * 默认登录机构注记：0，否；1，是
     */
    private Integer mainFlg;

    public String getUserOrgKey() {
        return userOrgKey;
    }

    public void setUserOrgKey(String userOrgKey) {
        this.userOrgKey = userOrgKey;
    }
    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey;
    }
    public String getOrgKey() {
        return orgKey;
    }

    public void setOrgKey(String orgKey) {
        this.orgKey = orgKey;
    }
    public Integer getMainFlg() {
        return mainFlg;
    }

    public void setMainFlg(Integer mainFlg) {
        this.mainFlg = mainFlg;
    }

    @Override
    public String toString() {
        return "SysUserOrg{" +
            "userOrgKey=" + userOrgKey +
            ", userKey=" + userKey +
            ", orgKey=" + orgKey +
            ", mainFlg=" + mainFlg +
        "}";
    }
}
